# -*- coding: utf-8 -*-
from datetime import timedelta

from airflow.providers.apache.hdfs.sensors.web_hdfs import WebHdfsSensor
from jms.time_sensor.time_after_08_10 import time_after_08_10

jms_dm__dm_dependent_dm_taking_timely_detail_hi_0810 = WebHdfsSensor(
    pool='unlimited_pool',
    task_id="jms_dm__dm_dependent_dm_taking_timely_detail_hi_0810",
    filepath='/dw/hive/jms_dm.db/external/dm_taking_timely_detail_hi/dt={{ execution_date | cst_ds }}',
    #execution_timeout=timedelta(hours=3)
    #excel平均时长:0
    #execution_timeout = timedelta(minutes=15)
    #excel平均时长:0
    execution_timeout = timedelta(minutes=90),
    email=['wangmenglei@jtexpress.com','yl_bigdata@yl-scm.com'],
    retries=0,
)
jms_dm__dm_dependent_dm_taking_timely_detail_hi_0810 << time_after_08_10
